package com.vivio.interview;

import java.util.Scanner;

/**
 * @author ZhangyiA
 * @describe:
 * @date 2021/07/04
 */

public class Two_PalindromeString {

    public boolean isPalindrome(char[] str){
        for(int i = 0 , j = str.length - 1 ; i < j ; i ++ , j --){
            if(str[i] != str[j]){
                return false;
            }
        }
        return true;
    }

    public static void main(String[] args){
        Scanner input = new Scanner(System.in);
        Two_PalindromeString palindrome = new Two_PalindromeString();
        String str = input.next();
        for(int i = 0 ; i < str.length() ; i ++){
            StringBuffer tempstr = new StringBuffer(str);
            tempstr.deleteCharAt(i);
            if(palindrome.isPalindrome(tempstr.toString().toCharArray())){
                System.out.println(tempstr);
                return;
            }
        }
        System.out.println(false);
    }

}
